/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package reniec.services;

import java.util.List;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import reniec.data.access.personaDAO;
import reniec.entities.persona;
/**
 *
 * @author Luis Cordova
 */
@WebService(serviceName = "ServicioRENIEC")
public class ServicioRENIEC {

    /**
     * This is a sample web service operation
     */
    
    @WebMethod(operationName = "getDatosPersona")
    public List<persona> listaPersona (@WebParam(name = "dni") String dni){
        personaDAO personaService = new personaDAO();
        return personaService.listarPersona(dni);
    }
}
